package com.qymerge.manage.system.dao;

import com.qymerge.manage.system.ro.SysMenuRO;
import java.util.List;
import java.util.Set;

/**
 * <p>Title: ISysMenuDao</p>
 * <p>Description: 菜单表</p>
 *
 * @Author cong.zhang
 * @Version 1.0.0
 * @Date 2020/7/26/0026
 * @Time 22:56
 */
public interface ISysMenuDao {

    List<SysMenuRO> findAll();

    List<SysMenuRO> findAllByParentId(Long parentId);

    List<SysMenuRO> findAllByIds(Set<Long> menuIds);

    SysMenuRO findOneById(Long id);

    int install(SysMenuRO ro);

    int update(SysMenuRO ro);

    int remove(Long parentId, Long menuId);

}
